<?php
	include "../../public/commom/config.php";
	include "../lock2.php";
	
	if($_POST) {
		$id = $_POST["id"];
		$username = $_POST["username"];
		$password = $_POST["password"];
		$area_id = $_POST["area_id"];
	
		$sql = "UPDATE user SET username = '$username', password = '$password', area_id = '$area_id' WHERE id = $id";
			
		$result = mysqli_query($conn, $sql);
		
		mysqli_close($conn);
			
		header("Location: ./index.php");
	}
?>